clear all

** Set working directory: please set your own
/*
cd "~/Dropbox/sanctions_replication/"
*/
** Open dataset
use data/survey_clean.dta, clear

** Analyses
regr sanct_phis_vox_num pharm_vox_num female_dummy age_calculated college spanish ///
canarias murcia andalucia balears valencia cataluna extremadura castilla_mancha ///
castilla_leon aragon rioja navarra pais_vasco cantabria asturias galicia, r
est store physical_harm

regr sanct_verb_vox_num pharm_vox_num female_dummy age_calculated college spanish ///
canarias murcia andalucia balears valencia cataluna extremadura castilla_mancha ///
castilla_leon aragon rioja navarra pais_vasco cantabria asturias galicia, r
est store verbal_harm

regr sanct_insult_vox_num pharm_vox_num female_dummy age_calculated college spanish ///
canarias murcia andalucia balears valencia cataluna extremadura castilla_mancha ///
castilla_leon aragon rioja navarra pais_vasco cantabria asturias galicia, r
est store insult_harm

regr sanct_avoid_vox_num pharm_vox_num female_dummy age_calculated college spanish ///
canarias murcia andalucia balears valencia cataluna extremadura castilla_mancha ///
castilla_leon aragon rioja navarra pais_vasco cantabria asturias galicia, r
est store avoid_harm

regr sanct_deny_vox_num pharm_vox_num female_dummy age_calculated college spanish ///
canarias murcia andalucia balears valencia cataluna extremadura castilla_mancha ///
castilla_leon aragon rioja navarra pais_vasco cantabria asturias galicia, r
est store deny_harm

regr sanct_gossip_vox_num pharm_vox_num female_dummy age_calculated college spanish ///
canarias murcia andalucia balears valencia cataluna extremadura castilla_mancha ///
castilla_leon aragon rioja navarra pais_vasco cantabria asturias galicia, r
est store gossip_harm

* Check mean dependent variables
sum sanct_phis_vox_num
sum sanct_verb_vox_num
sum sanct_insult_vox_num
sum sanct_avoid_vox_num
sum sanct_deny_vox_num
sum sanct_gossip_vox_num

* Make table
esttab physical_harm verbal_harm insult_harm avoid_harm deny_harm gossip_harm ///
using tables/tableb4.tex, tex nonumber keep (pharm_vox_num _cons) ///
mtitles("Physical" "Verbal" "Insult"  "Gossip" "Deny help" "Avoid interact") ///
coeflabels(pharm_vox_num "Beliefs about harmfulness (inverted)" _cons "Constant") se ///
replace 
